<?php
/* 
 * ebiz front
 * 
 * Customer Model
 * 
 * @author li.jf
 * 
 */

require_once '../app/core/models/BaseDao.php';
require_once '../app/core/db/DBUtil.class.php';

class OrderPackageDao extends BaseDao {
	
    private $tableName = "order_packages";
    
    public function __construct($dbUtil){   
        parent::__construct($dbUtil);            
    }

    //get allorderpackages by orderid from order_packages table
    public function getAllOrderPackageByOrderId($orderid){  
    	$sql = "select * from $this->tableName where order_id=? and is_delete=0";
    	$param=array($orderid);
    	return $this->dbUtil->SelectData($sql,$param);
    }
}